using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace GoodDotNet.Core.Entity
{
  
  /**
   *
   * @author 大钊
   * @since 2023/9/7 12:32:29
   */

	 [Table("user")]
	public class User{
		
		/// <summary>
		/// 主键
		/// </summary>
		
		[Key]
		
    [Column("id")]
    public long Id{ get; set; }
		
		/// <summary>
		/// 8位唯一用户号
		/// </summary>
		
    [Column("card")]
    public int Card{ get; set; }
		
		/// <summary>
		/// 昵称
		/// </summary>
		
    [Column("nick_name")]
    public string NickName{ get; set; }
		
		/// <summary>
		/// 出生日期
		/// </summary>
		
    [Column("birthday")]
    public DateTime Birthday{ get; set; }
		
		/// <summary>
		/// 头像
		/// </summary>
		
    [Column("pic")]
    public string Pic{ get; set; }
		
		/// <summary>
		/// 等级
		/// </summary>
		
    [Column("grade")]
    public int Grade{ get; set; }
		
		/// <summary>
		/// svg头像
		/// </summary>
		
    [Column("svgpic")]
    public string Svgpic{ get; set; }
		
		/// <summary>
		/// 手机号
		/// </summary>
		
    [Column("mobile")]
    public long Mobile{ get; set; }
		
		/// <summary>
		/// 邮箱账号
		/// </summary>
		
    [Column("email")]
    public string? Email{ get; set; }
		
		/// <summary>
		/// 密码
		/// </summary>
		
    [Column("password")]
    public string Password{ get; set; }
		
		/// <summary>
		/// 地址
		/// </summary>
		
    [Column("address")]
    public string Address{ get; set; }
		
		/// <summary>
		/// 城市
		/// </summary>
		
    [Column("city")]
    public int City{ get; set; }
		
		/// <summary>
		/// 省份
		/// </summary>
		
    [Column("province")]
    public int Province{ get; set; }
		
		/// <summary>
		/// 登录ip
		/// </summary>
		
    [Column("ip")]
    public long Ip{ get; set; }
		
		/// <summary>
		/// 登录错误次数
		/// </summary>
		
    [Column("login_error")]
    public int LoginError{ get; set; }
		
		/// <summary>
		/// 经度
		/// </summary>
		
    [Column("longitude")]
    public decimal? Longitude{ get; set; }
		
		/// <summary>
		/// 维度
		/// </summary>
		
    [Column("latitude")]
    public decimal? Latitude{ get; set; }
		
		/// <summary>
		/// 性别 0男 1女
		/// </summary>
		
    [Column("sex")]
    public int Sex{ get; set; }
		
		/// <summary>
		/// 粉丝数
		/// </summary>
		
    [Column("follow")]
    public long Follow{ get; set; }
		
		/// <summary>
		/// 关注数
		/// </summary>
		
    [Column("concerns")]
    public long Concerns{ get; set; }
		
		/// <summary>
		/// 是否在线
		/// </summary>
		
    [Column("online")]
    public Boolean Online{ get; set; }
		
		/// <summary>
		/// 个人中心背景图
		/// </summary>
		
    [Column("back_image")]
    public string? BackImage{ get; set; }
		
		/// <summary>
		/// 实名认证 0:未认证  1:已认证 2:审核中 3:已拒绝 
		/// </summary>
		
    [Column("authentication")]
    public int Authentication{ get; set; }
		
		/// <summary>
		/// 0:正常 1:封禁
		/// </summary>
		
    [Column("state")]
    public int State{ get; set; }
		
		/// <summary>
		/// 微信公众号openid
		/// </summary>
		
    [Column("openid")]
    public string Openid{ get; set; }
		
		/// <summary>
		/// 0:安卓 1:ios
		/// </summary>
		
    [Column("register_source")]
    public int RegisterSource{ get; set; }
		
		/// <summary>
		/// 1正常用户 2测试账号
		/// </summary>
		
    [Column("identity")]
    public int? Identity{ get; set; }
		
		/// <summary>
		/// 注册时间
		/// </summary>
		
    [Column("insert_time")]
    public DateTime InsertTime{ get; set; }
		
		/// <summary>
		/// 更新时间
		/// </summary>
		
    [Column("update_time")]
    public DateTime? UpdateTime{ get; set; }
		
		/// <summary>
		/// 是否删除
		/// </summary>
		
    [Column("deleted")]
    public int? Deleted{ get; set; }
		
	}
}
